// utils/responseHelper.js

export const successResponse = (ctx, data, message = "操作成功") => {
  ctx.status = 200;
  ctx.body = {
    message,
    data,
    code: 200,
  };
};

export const errorResponse = (ctx, status, message) => {
  ctx.status = 200;
  ctx.body = {
    message,
    code: status,
  };
};
